﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Threading.Tasks;
using System.IO;
using System.Net.Sockets;
using System.Collections.Generic;

namespace MiniChat
{
    public class CGlobalVariable
    {
        public static string HttpImageServer = "";
        public static string HttpServer = "";
        public static string FullName = "";
        public static string UserAvatar = "";
        //replace by isostore
        //public static string AppPath = Directory.GetCurrentDirectory();
        //public static string ImagePath = System.Windows.Shapes.Path.Combine(Directory.GetCurrentDirectory(), "temp", "useravatar");
        public static string UserName = "";
        public static Image imgUserAvatar;
        public static TextBlock txtStatustext;
        public static MyDb _db = new MyDb();
        public static ListBox lsbContacts;
        public static ListBox lsbCurentChats;
        public static ListBox lsbChatWindows;
        public static bool IsPin = false;
        public static Socket connectedsock;
        public static bool IsDisconnected=false;
        public static Dictionary<string, Msgs> lstChatData = new Dictionary<string, Msgs>();
        public static bool Logged;

    }
    /* //access direct 
    public class DownloadTask
    {
        public string url;
        public string username;
        public Task action;
    }*/

    public class Msgs
    {
        public int contactboxid { set; get; }
        public int curentchatboxid { set; get; }
        public List<Object> chatData { set; get; }
    }
    public class ContactItem
    {
        public string ContactName { set; get; }
        public int ContastStatus { set; get; }
        public string ContactImage { set; get; }
        public string ContactFullName { set; get; }
        public string Localpath { set; get; }
    }
}
